/*
 * Used for count down. Currently it is only used before the boss come.
 * It may also be used in other situations.
 */

package game;

public class CountDown implements Runnable
{
	int countSec;
	public CountDown(int sec)
	{
		countSec = sec;
	}
	
	public void run()
	{
		while (countSec != 0)
		{
			GamePanel.countDownNum = countSec;
			try {
	            Thread.sleep(1000);
	        } catch (InterruptedException e) {
	            System.out.println("interrupted");
	        }
			countSec --;
		}
		GamePanel.countDownNum = 0;
	}
}
